<?xml version="1.0" encoding="utf-8"?> 
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page contentType="application/vnd.wap.xhtml+xml;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page pageEncoding="utf-8"%>
	<head>  
	    <meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml;charset=utf-8" />
	    <title>${news.shortTitle}_手机环球网</title>
	    <link rel="stylesheet" href="wap/css/style.css" type="text/css" />
	</head>
	<body>
		<div class="main">
			<%@ include file="top4.jsp"%>
			<!--
			导航条
			-->
			<div class="${nav}">
				<a href="index.html">首页</a>&gt;<a href="pd.html?id=${news.pindao.father.id}">${news.pindao.father.name}</a>&gt;<a href="lm.html?id=${news.pindao.id}">${news.pindao.name}</a>
			</div>
			<!--
			正文页-广告位-页头
			-->
			<div>
				<c:set target="${DE}" property="blockId" value="14" />
				<%@ include file="blockcont.jsp"%>
			</div>
			<!--
			正文
			-->
			<div>
				<p class="newstitle">${news.title}</p>
				<p class="newstime">
					<fmt:formatDate value="${news.savetime}"
							pattern="yyyy-MM-dd HH:mm" type="both" /> 来源:${news.comefrom}
				</p>
				<c:if test="${news.type==2}">
					<p style="text-align:center;">
					   <img src="http://wapimg1.huanqiu.com${news.image.path2}" alt="图片" style="width:220px;border:0px solid #f5f5f5;"/>
					</p>
					<p>
					   ${news.image.alt}
					</p>
					<p class="imagenav" style="text-align:center;">
						（ <span class="red">${page}</span>/${pm.totalPages}）张   <c:if test="${page<pm.totalPages}"><a href="view.html?id=${news.id}&page=${page+1}"> 下一张</a></c:if> <c:if test="${page>1}"><a href="view.html?id=${news.id}&page=${page-1}">上一张  </a></c:if> 
					</p>
					<p class="imagenav" style="text-align:center;">
						 <a href="http://wapimg1.huanqiu.com${empty (news.image.path1)?(news.image.path):(news.image.path1)}">大图</a>|<a href="http://wapimg1.huanqiu.com${empty (news.image.path2)?(news.image.path):(news.image.path2)}">中图</a>|<a href="http://wapimg1.huanqiu.com${empty (news.image.path3)?(news.image.path):(news.image.path3)}">小图</a>
					</p>
				</c:if>
				<div class="newscont">${news.content}</div>
				<p style="text-align:center;">
					<c:if test="${pagination.totalPage>page}">
						<a href="view.html?id=${news.id}&page=${page}&r=2">余下全文</a> 
					</c:if>
					${pagination.showWapContPage}
				</p>
			</div>
			<!--
			正文页-广告位-文末
			-->
			<div>
				<c:set target="${DE}" property="blockId" value="15" />
				<%@ include file="blockcont.jsp"%>
			</div>
			<!--
				评论
			-->
			<c:if test="${news.canComment==true}">
				<div class="lanmu-line">
					<a href="#">[网友评论]</a>
				</div>
				<div style="padding:5px;">
					<c:forEach var="comment" items="${news.commentList}" varStatus="idx">
						<p>${news.commentCount-idx.index}楼 :${comment.cont2}[<fmt:formatDate value="${comment.savetime}"
							pattern="MM-dd HH:mm" type="both" />]
							<c:if test="${!empty comment.browser}">来自${comment.browser}浏览器</c:if>
							</p>
					</c:forEach>
				</div>
				<div>
					<p><a href="comment.html?act=more&id=${news.id}">&gt;&gt;全部评论</a></p>
				</div>
				<div class="search">
					<form action="comment.html" method="post">
						<p>
						<input type="hidden" name="act" value="comment"/>
						<input type="hidden" name="id" value="${news.id}"/>
						<input type="text" name="cont" value="" class="searchKey"/>
						<input type="submit" value="发言(70字)" class="searchBtn"/>
						</p>
					</form>
				</div>
			</c:if>
			<!--
			正文页-广告位-评论下方
			-->
			<div style="clear:both;">
				<c:set target="${DE}" property="blockId" value="16" />
				<%@ include file="blockcont.jsp"%>
			</div>
			<div style="clear:both;">
				<c:choose>
					<c:when test="${!empty news.prev}">
						<p><a href="view.html?id=${news.prev.id}">上一条：${news.prev.shortTitle}</a></p>
					</c:when>
					<c:otherwise>
						<p><a href="#">上一条：没有了</a></p>
					</c:otherwise>
				</c:choose>
				<c:choose>
					<c:when test="${!empty news.next}">
						<p><a href="view.html?id=${news.next.id}">下一条：${news.next.shortTitle}</a></p>
					</c:when>
					<c:otherwise>
						<p><a href="#">下一条：没有了</a></p>
					</c:otherwise>
				</c:choose>
			</div>
			<!--
			正文页-广告位-[相关新闻]前
			-->
			<div>
				<c:set target="${DE}" property="blockId" value="17" />
				<%@ include file="blockcont.jsp"%>
			</div>
			<!--
			导航条
			-->
			<div class="${nav}" style="margin-bottom:10px;">
				<a href="index.html">首页</a>&gt;<a href="pd.html?id=${news.pindao.father.id}">${news.pindao.father.name}</a>&gt;<a href="lm.html?id=${news.pindao.id}">${news.pindao.name}</a>
			</div>
			<div class="lanmu-line">
				<img src="wap/img/r.png"/>
				<a href="#">[相关新闻]</a>
			</div>
			<div class="block">
				<c:forEach var="news" items="${news.relationList}">
					<p>
						<a href="view.html?id=${news.id}">${news.shortTitle}</a>
					</p>
				</c:forEach>
			</div>
			<div class="lanmu-line">
				<img src="wap/img/r.png"/>
				<a href="#">[${news.pindao.father.name}点击排行]</a>
			</div>
			<div class="block">
				<c:forEach var="news" items="${rankList}">
					<p>
						<a href="view.html?id=${news.id}">${news.shortTitle}</a>
					</p>
				</c:forEach>
			</div>
			<div class="lanmu-line">
				<img src="wap/img/r.png"/>
				<a href="#">[频道精选]</a>
			</div>
			<div>
				<c:set target="${DE}" property="blockId" value="12" />
				<%@ include file="blockcont.jsp"%>
			</div>
			<!--
			正文页-广告位-页底
			-->
			<div>
				<c:set target="${DE}" property="blockId" value="18" />
				<%@ include file="blockcont.jsp"%>
			</div>
			<%@ include file="foot.jsp"%>
			<div>
				<img src="http://113.31.27.131:8084/admin/dc.jsp?act=4&v=wap2&pd=${news.pindao.father.id}&lm=${news.pindao.id}&oid=${id}&qd=${qd}" alt="" width="0" height="0"/>
			</div>
		</div>
	</body>
</html>
